package iliasTests;

public class DirektesEinfuegen
{

    public static void main(String[] args)
    {
        int[] unsorted =
        { 56, 22, 79, 27, 9, 30, 61, 4, 69, 38, 52, 89, 23, 17, 68, 30 };

        for (int i = 1; i < unsorted.length; i++)
        {
            int j = i;
            int t = unsorted[j];
            while (j > 0 && unsorted[j - 1] > t)
            {
                unsorted[j] = unsorted[j - 1];
                j--;
            }
            unsorted[j] = t;
        }
        for (int i = 0; i <= unsorted.length; i++)
        {
            System.out.println(String.valueOf(unsorted[i]));
        }
    }

}
